import type { AppDispatch } from '@/store'
import { useDispatch } from 'react-redux'

// 给useDispatch 添加泛型， 默认接收的参数是AnyAction
// import {  useDispatch } from 'react-redux'
export const useAppDispatch = () => useDispatch<AppDispatch>()
